//
//  Config.h
//  Bracelet
//
//  Created by betta on 2/13/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//

#ifndef Bracelet_Config_h
#define Bracelet_Config_h


// API主
//uat
//#define API_HOST @"http://120.24.55.7:8082/Walkathon/"

//test
//#define API_HOST @"http://183.232.32.40:8080/Walkathon/"
//#define API_HOST @"http://192.168.191.200:8080/Walkathon/"

//production
#define API_HOST @"https://120.24.70.17:8447/Walkathon/"

// API超时时间
#define API_TIMEOUT 2

#define USERID   @"userId"
#define LASTUPDATEDDATE @"lastUpdatedDate"
#define LASTUPDATEDDATEUSERINFOR @"lastUpdatedDateUserInfor"

#define NOTIFICATION_BRACELET_ISWORKOUT @"notification_bracelet_isworkout"
#define NOTIFICATION_BRACELET_ISFIRSTPAGE @"notification_bracelet_isfirstPage"
#define NOTIFICATION_BRACELET_CONTROLLERTYPE @"notification_controllerType"
#define NOTIFICATION_BRACELET_PAGE @"notification_controllerPage"

#define NOTIFICATION_APP_BECOME_ACTIVE @"notification_appBecomeActive"

//home type
#define STYPE_WORKOUT @"stype_workout"
#define STYPE_MYCITY  @"stype_mycity"
#define STYPE_HBCN    @"stype_hbcn"

//today&& week
#define APIKEYHTML @"html"
#define APIKEYCODE @"code"
#define APIKEYData @"data"
#define APIKEYLAST_UPDATE_TIME      @"last_update_time"
#define APIKEYNEXTCHALLENGE         @"nextChallenge"
#define APIKEYPERCENT               @"percent"
#define APIKEYRUNTOTAL_METRE        @"runTotal_metre"
#define APIKEYTOTALDAYS             @"totalDays"

#define APIKEYTOTAL_MONEY           @"total_money"
#define APIKEYTOTALTARGET            @"totalTarget"
#define APIKEYRANKRESULT            @"rankResult"
#define APIKEYREMAINDAYS            @"remainDays"
#define APIKEYMSG                   @"msg"

#define APIKEYUSERINFO      @"userInfo"
#define APIKEYTUSER         @"TUser"
#define APIKEYBRANCHID      @"branchId"
#define APIKEYCITYID        @"cityId"
#define APIKEYDEPARTMENTID  @"departmentId"
#define APIKEYMOBILE        @"mobile"
#define APIKEYUSERID        @"userId"
#define APIKEYUSERNAME      @"userName"

//workout rank
#define APIKEYALLRANK           @"allRank"
#define APIKEYMYRANK            @"myRank"
#define APIKEYPAPER             @"pager"
#define APIKEYRANKNUM           @"rankNum"
#define APIKEYTOTALRUNMETRES    @"totalRunMetres"
#define APIKEYUSERID            @"userId"
#define APIKEYUSERNAME          @"userName"
#define APIKEYTOTALRUNNERS      @"totalRunners"

//paper
#define APIKEYPAGENO @"pageNo"
#define APIKEYPAGESIZE @"pageSize"
#define APIKEYSTARTROW @"startRow"
#define APIKEYTOTALPAGES @"totalPages"
#define APIKEYTOTALROWS @"totalRows"

//history
#define  APIKEYEACHSUNDAY @"eachSunday"
#define  APIKEYPRECENT @"precent"
#define  APIKEYRUN_METRE @"run_metre"
#define  APIKEYEDATALIST @"dataList"
#define  APIKEYEACHSUNDAYLIST @"sundayList"


/*city***********************************************************************city*/
#define APIKEYMYCITYDATA              @"myCityData"
#define APIKEYCITYNEXTCHALLENGETARGET @"cityNextChallengeTarget"
#define APIKEYCITYRUNRANKING          @"cityRunRanking"
#define APIKEYCITYRUNTOTLEMONEY       @"cityRunTotleMoney"
#define APIKEYCITYRUNTOTLEMETRE       @"cityRunTotLeMetre"
#define APIKEYCITYSTAGE               @"cityStage"
#define APIKEYCITYTARGET              @"cityTarget"
#define APIKEYCITYTOTLEWALKERS        @"cityTotleWalkers"
#define APIKEYOKPROPORTION           @"okproportion"


//history
#define APIKEYMAXMETRE            @"maxMetre"
#define APIKEYWEEK_DATACITY       @"week_dataCity"
#define APIKEYCITY_SUM_METRES     @"city_sum_metres"
#define APIKEYPROPORTION          @"proportion"
#define APIKEYRUN_DATE            @"run_date"

//cityRank
#define APIKEYCITYRANINGDATALIST              @"cityRaningDataList"
#define APIKEYCITYID                          @"cityId"
#define APIKEYCITYNAME                        @"cityName"
#define APIKEYCITYRUNRANKING                  @"cityRunRanking"
#define APIKEYOKPROPORTION                    @"okproportion"
#define APIKEYRUNTOTAL_METRE                  @"runTotal_metre"
#define APIKEYMAX_METRE                       @"max_metre"
#define APIKEYTOTAL_MONEY                     @"total_money"
#define APIKEYRANKNUM                         @"rankNum"
#define APIKEYTHISCITYDATA                    @"thisCityData" 
#define APIKEYCITYINFO                        @"cityInfo" 
#define APIKEYDEPARTINFO                      @"departInfo"


#pragma mark HSBC
//total
#define APIKEYDISTANCETONEXTCITY              @"diatanceToNextCity"
#define APIKEYNEXTCHALLENGE                   @"nextChallenge"
#define APIKEYNEXTCITY_EN                     @"nextCityName_en"
#define APIKEYTOTALWALKERS                    @"totalWalkers"
//cities
#define APIKEYCITYNUM                         @"cityNum"
#define APIKEYCITIESINFO                      @"citiesInfo"

//world
#define APIKEYURL                             @"url"
#define APIKEYWORLDINFO                       @"worldInfo"


//syndata
#define APIKEYSAVEFLAG  @"saveFlag"
#define APIKEYMSG @"msg"
#define USERDEFAULTSUID @"uid"
#define USERDEFAULTSACCESSTOKEN @"accessToken"

#define SuppressPerformSelectorLeakWarning(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)
#endif
